#!/bin/bash
res=""
for l in `cat $1`;do
        if [ "$res" = "" ];then
                res=$l
        else
		if [ "$l" != "" ];then
                	res="${res}, $l"
		fi
        fi
done
echo ${res}
